package com.ry;

import com.ry.util.timepick.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class OrderConfirmActivity extends Activity {
	private Button btnBack;
	private Button btnConfirmAndSubmit;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.order_confirm);
		init();
	}

	private void init() {
		btnBack = (Button) findViewById(R.order_confirm.btn_back);
		btnConfirmAndSubmit = (Button) findViewById(R.order_confirm.btn_confirm_and_submit);

		btnBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				OrderConfirmActivity.this.finish();
			}
		});

		btnConfirmAndSubmit.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OrderConfirmActivity.this, OrderSubmitSucceedActivity.class);
				startActivity(intent);
			}
		});
	}

}
